#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Datamodel classes

from google.appengine.ext import db

class Tag(db.Model):
    """ Tag model """
    
    name = db.StringProperty()


class Entry(db.Model):
    """ Map infomation model """
    
    title = db.StringProperty()
    lon = db.StringProperty()
    lat = db.StringProperty()
    memo = db.StringProperty(multiline=True)
    created = db.DateTimeProperty(auto_now_add=True)
    updated = db.DateTimeProperty(auto_now=True)
    published = db.BooleanProperty()
    author = db.StringProperty()
    #tags = db.ListProperty(db.Key)